<template>
  <div class="dashboard-container">
    <el-row :gutter="20">
      <el-col :span="18">
        <div class="grid-content head-left">
          <el-row :gutter="20">
            <el-col :span="13"><div class="grid-content hl-order"><OrderStat /></div></el-col>
            <el-col :span="11"><div class="grid-content hl-sale"><SaleStat /></div></el-col>
            <el-col :span="24"><div class="grid-content hl-data"><SaleData /></div></el-col>
          </el-row>
        </div>
      </el-col>
      <el-col :span="6"><div class="grid-content head-right"><SkuTop /></div></el-col>
      <el-col :span="14"><div class="grid-content footer-left">合作商点位top5</div></el-col>
      <el-col :span="10"><div class="grid-content footer-right">异常设备监控</div></el-col>
    </el-row>
  </div>
</template>

<script>
import OrderStat from './components/orderStat.vue'
import SaleStat from './components/saleStat.vue'
import SkuTop from './components/skuTop'
import SaleData from './components/saleData'
export default {
  name: 'Dashboard',
  components: {
    OrderStat,
    SaleStat,
    SkuTop,
    SaleData
  }

}
</script>

<style lang="scss" scoped>
.dashboard-container {
  width: 100%;
  height: 100%;
  background-color: #f2f4f9;
  &,.head-right,.hl-order,.hl-sale,.hl-data,.head-right,.footer-left,.footer-right{
    padding: 20px;
    border-radius: 20px;
    box-sizing: border-box;
  }
  .head-left,.head-right{
    height: 538px;
  }
  .head-left{
    .hl-order{
      height: 166px;
      background-color: #e9f3ff;
      background: #e9f3ff;
    background-image: url(),url(http://likede2-admin.itheima.net/img/task.66b715b7.png);
    background-repeat: no-repeat,no-repeat;
    background-position: 0 0,calc(100% - 12px) 100%;
    }
    .hl-sale{
        height: 166px;
        background: #fbefe8 url(http://likede2-admin.itheima.net/img/sale.606b0d8c.png) no-repeat calc(100% - 12px) 100%;
        background-color: #fbefe8;
    }
    .hl-data{
      margin-top: 20px;
      height: 352px;
      background-color: #fff;
    }
  }
  .head-right{
    background-color: #FFF;
  }
  .footer-left,.footer-right{
    margin-top: 20px;
    line-height: 353px;
    height: 353px;
  }
  .footer-left{
    background-color: #099;
  }
  .footer-right{
    background-color: #990;
  }
}
</style>
